package cn.jiyun.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * @TableName jkgl_zjgl
 */
@TableName(value ="jkgl_zjgl")
@Data
public class Zjgl implements Serializable {
    private Integer id;

    private String name;

    private String bdsb;

    private String cert;
    private String bh;
    private String longitude;
    private String latitude;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Zjgl other = (Zjgl) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getBdsb() == null ? other.getBdsb() == null : this.getBdsb().equals(other.getBdsb()))
            && (this.getCert() == null ? other.getCert() == null : this.getCert().equals(other.getCert()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getBdsb() == null) ? 0 : getBdsb().hashCode());
        result = prime * result + ((getCert() == null) ? 0 : getCert().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
//        sb.append(", sid=").append(bdsb);
        sb.append(", cert=").append(cert);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
